#include <iostream>
using namespace std;

int main() {
    int N,m;
    int temp;
    cin >> N >> m;
    int count = 0;

    if (N > 100)
    {
        return 0;
    }
    for (int i = 0; i < N; i++)
    {
        cin >> temp;
        if (temp == m)
        {
            count += 1;
        }
        
    }
    cout << count;
    
    return 0;
}